package cn.ekgc.qy.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.Date;

@Getter
@Setter
@Component
@ToString
public class Patient {

  private long id;
  private String name;
  private Date birthday;
  private long sex;
  private String address;
  private String phone;
  private String idCard;
  private long isMedicare;
  private String idMedicare;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private LocalDateTime createdTime;
  private LocalDateTime updatedTime;
  private String fSex;
}